package org.dromara.system.pojo.qo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.dromara.common.web.core.domain.BaseQO;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * 用户信息表 实体类。
 *
 * @author mkj
 * @since 2024-07-20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "用户信息表")
public class SysUserQO extends BaseQO {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "用户ID")
    private Long id;

    @Schema(description = "部门ID")
    private Long deptId;

    @Schema(description = "用户账号")
    private String userName;

    @Schema(description = "用户昵称")
    private String nickName;

    @Schema(description = "用户类型（SYS_USER系统用户）")
    private String userType;

    @Schema(description = "手机号码")
    private String phone;

    @Schema(description = "用户邮箱")
    private String email;

    @Schema(description = "用户性别（0男 1女 2未知）")
    private Integer sex;

    @Schema(description = "头像地址")
    private Long avatar;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "状态（1正常 0停用）")
    private Integer status;

    @Schema(description = "最后登录IP")
    private String loginIp;

    @Schema(description = "最后登录时间")
    private LocalDateTime loginDate;

    @Schema(description = "备注")
    private String remark;
}
